package com.ifpe.ifmoodledroid.ui;

import com.ifpe.ifmoodledroid.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Handler;

public class SplashActivity extends Activity implements Runnable{

	private Handler handler;
	
	@Override
	protected void onCreate(android.os.Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.splash_layout);
		
		handler = new Handler();
		
		handler.postDelayed(this, 2000);
	}
	
	@Override
	protected void onPause() {
		super.onPause();
		
		handler.removeCallbacks(this);
	}
	
	public void run() {
		
		
		
		Intent it = new Intent(

			     this, TelaLoginActivity.class);

			   startActivity(it);

			   finish();

			   overridePendingTransition(

			     android.R.anim.fade_in, android.R.anim.fade_out);
	}

}
